//
//  HWChongzhijiemianViewController.m
//  HWPromoteProjectAPP
//
//  Created by 陈道斌 on 2020/3/10.
//  Copyright © 2020 陈道斌. All rights reserved.
//

#import "HWChongzhijiemianViewController.h"

@interface HWChongzhijiemianViewController ()
@property (weak, nonatomic) IBOutlet UILabel *chongzhijingerLabel;
@property (weak, nonatomic) IBOutlet UILabel *yufukuanLabel;

@property (weak, nonatomic) IBOutlet UIView *beijingView;


@end

@implementation HWChongzhijiemianViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self setupUI];
    
   // [self sendNetworkRequest];
    
    [self daohangNavigation];
    
    
}



- (void)daohangNavigation {
    
    
    UIImage *loginImg = [UIImage imageNamed:@"fanghui_QC"];
    loginImg = [loginImg imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    
    self.navigationItem.leftBarButtonItem  = [[UIBarButtonItem alloc]initWithImage:loginImg style:UIBarButtonItemStylePlain  target:self action:@selector(rightBarTap)];
    
    
    
}



- (void)rightBarTap  {
    

     NSArray *Controller =   self.navigationController.childViewControllers;
     [self.navigationController popToViewController:Controller[Controller.count-3] animated:YES];
      
    
    
    
    
}






// 设置UI
- (void)setupUI {
    
    self.navigationItem.title = @"充值";
    self.view.backgroundColor = beijingyanSe;
    
    self.beijingView.layer.cornerRadius = 12;
    self.beijingView.layer.masksToBounds = YES;
    
    self.chongzhijingerLabel.text = [NSString stringWithFormat:@"%@元",self.chongzhijinger];
    self.yufukuanLabel.text = [NSString stringWithFormat:@"%@元",self.zongjinge];
    

    
}


//// 发送网络请求
//- (void)sendNetworkRequest {
    


//
//         NSString *tStr = [NSString stringWithFormat:@"%ld",[WMUtil getTimeSp]];
//         NSString *uid =  [HWLocallyStoredData getLoginUserID];
//         NSString *signStr = [NSString stringWithFormat:@"%@%@%@%@",uid,self.idStr,tStr,@"adesxloksy13s98adv"];
//         NSString  *signStrMd5  =   [WMUtil md5HexDigest:signStr];
//
//         NSDictionary *parametes = @{      @"ios" : @"1",
//                                       @"ct" : @"app",
//                                        @"ac" : @"recharge_log",
//                                        @"t" : tStr,
//                                        @"oid" : self.idStr,
//                                        @"uid":uid,
//                                        @"sign" :signStrMd5
//                                        };
//
//
//            [HWWebUtils doGetWithParameters:parametes progress:nil success:^(id response) {
//
//
//
//                  NSString *codeStr =  [NSString stringWithFormat:@"%@",response[@"code"]];
//                  if ([codeStr intValue] == 1) {
//
//                           NSLog(@"%@",response);
//
//
//
//
//
//
//
//
//
//
//
//
//                  } else {
//
//                    [MBProgressHUD showError:response[@"message"]];
//
//
//
//                  }
//
//
//
//              } failure:^(NSString *error) {
//                 // [SVProgressHUD dismiss];
//
//                  [MBProgressHUD showSuccess:@"登录失败"];
//                  [MBProgressHUD hideHUD];
//
//
//
//
//              }];


//}

// 查询充值记录


- (IBAction)chaknaBut:(UIButton *)sender {
    
    
//   NSArray *Controller =   self.navigationController.childViewControllers;
//   [self.navigationController popViewControllerAnimated:YES];
//
//
    
     [self.navigationController popViewControllerAnimated:YES];
    

    
    
}


// 返回界面
- (IBAction)fanhuiBut:(UIButton *)sender {
    
    NSArray *Controller =   self.navigationController.childViewControllers;
     [self.navigationController popToViewController:Controller[Controller.count-3] animated:YES];
      
    
}




@end
